package com.esyoga.yoyoga.pojo.DTO;

import com.esyoga.yoyoga.pojo.TContract;

import java.math.BigDecimal;

public class PlatformContractDTO {
    private Integer cId;

    private Integer cSId;

    private String sName;

    private Integer cTId;

    private String cName;

    private Integer cGId;

    private String gName;

    private Double cGaPlatformratio;

    private Double cTaGymratio;

    private BigDecimal cBanlance;

    private Integer cState;

    private String cStateChinese;

    private String cCreatetime;

    public PlatformContractDTO(String sname, String cname, String gname, TContract tContract) {
        this.sName=sname;
        this.cName=cname;
        this.gName=gname;
        this.cId=tContract.getcId();
        this.cSId=tContract.getcSId();
        this.cGId=tContract.getcGId();
        this.cGaPlatformratio=tContract.getcGaPlatformratio();
        this.cTaGymratio=tContract.getcTaGymratio();
        this.cBanlance=tContract.getcBanlance();
        this.cState=tContract.getcState();
        if (cState==0){
            this.cStateChinese="未处理";
        }else if (cState==1){
            this.cStateChinese="进行中";
        }else if (cState==2){
            this.cStateChinese="已拒绝";
        }else if (cState==3){
            this.cStateChinese="已完成";
        }else if (cState==4){
            this.cStateChinese="已取消";
        }
        this.cCreatetime=tContract.getcCreatetime();
    }

    public PlatformContractDTO() {
    }

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public Integer getcSId() {
        return cSId;
    }

    public void setcSId(Integer cSId) {
        this.cSId = cSId;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public Integer getcTId() {
        return cTId;
    }

    public void setcTId(Integer cTId) {
        this.cTId = cTId;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public Integer getcGId() {
        return cGId;
    }

    public void setcGId(Integer cGId) {
        this.cGId = cGId;
    }

    public String getgName() {
        return gName;
    }

    public void setgName(String gName) {
        this.gName = gName;
    }

    public Double getcGaPlatformratio() {
        return cGaPlatformratio;
    }

    public void setcGaPlatformratio(Double cGaPlatformratio) {
        this.cGaPlatformratio = cGaPlatformratio;
    }

    public Double getcTaGymratio() {
        return cTaGymratio;
    }

    public void setcTaGymratio(Double cTaGymratio) {
        this.cTaGymratio = cTaGymratio;
    }

    public BigDecimal getcBanlance() {
        return cBanlance;
    }

    public void setcBanlance(BigDecimal cBanlance) {
        this.cBanlance = cBanlance;
    }

    public Integer getcState() {
        return cState;
    }

    public void setcState(Integer cState) {
        this.cState = cState;
    }

    public String getcStateChinese() {
        return cStateChinese;
    }

    public void setcStateChinese(String cStateChinese) {
        this.cStateChinese = cStateChinese;
    }

    public String getcCreatetime() {
        return cCreatetime;
    }

    public void setcCreatetime(String cCreatetime) {
        this.cCreatetime = cCreatetime;
    }
}
